package com.cangsan.erhai.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName tab_course
 */
@TableName(value ="tab_course")
@Data
public class TabCourse implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 比赛ID
     */
    @TableField(value = "contest_id")
    private Long contestId;

    /**
     * 赛程名称
     */
    @TableField(value = "course_name")
    private String courseName;

    /**
     * 赛程状态
     */
    @TableField(value = "course_status")
    private String courseStatus;

    /**
     * 开始时间
     */
    @TableField(value = "course_start_time")
    private Date courseStartTime;

    /**
     * 结束时间
     */
    @TableField(value = "course_end_time")
    private Date courseEndTime;

    /**
     * 主场队
     */
    @TableField(value = "course_master_team")
    private Long courseMasterTeam;

    /**
     * 客场队
     */
    @TableField(value = "course_away_team")
    private Long courseAwayTeam;


    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "course_master_team_num")
    private String courseMasterTeamNum;

    /**
     *
     */
    @TableField(value = "course_away_team_num")
    private String courseAwayTeamNum;



    /**
     *
     */
    @TableField(value = "master_football_name")
    private String masterFootballName;

    /**
     *
     */
    @TableField(value = "master_football_icon")
    private String masterFootballIcon;

    /**
     *
     */
    @TableField(value = "away_football_name")
    private String awayFootballName;

    /**
     *
     */
    @TableField(value = "away_football_icon")
    private String awayFootballIcon;

    @TableLogic // 标记为逻辑删除字段
    private Integer isDel;





    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
